﻿namespace SaveStudentes
{
    internal class Program
    {
        static void Main(string[] args)
        {
            String[] students = { "张三", "asdas", "asdasdas", "asdasdas" };
            for (int i = 0; i < students.Length; i++) { Console.WriteLine(students[i]); }
            Console.WriteLine("\n将 {0} 改名为 {1}", "周八", "吴九");
            students[1] = "吴九";                                        //为数组元素赋值
            foreach (string name in students) Console.Write(name + "\t"); //重新遍历数组
        }
    }
}